<%@ include file="/common/taglibs.jsp"%>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevent caching at the proxy server
%>

<head>
    <title><fmt:message key="wizardclientepersona.title"/></title>
    <meta name="heading" content="<fmt:message key='wizardclientepersona.heading'/>"/>
    <script type="text/javascript">
		busquedaClientes('');
	</script>  
</head>

<form:form id="clientepersonalist">
<input type="hidden" id="flagWizard" value="clientepersona" />

	<fieldset style="width: 300px">
	<legend><fmt:message key="common.filtros.busqueda"/></legend><br/>
		
		<div>
			<fmt:message key="common.nombre"/><br/>
			<input type="text" id="deNombreID" class="text medium"/>								
		</div><br/>
		
		<div>
			<fmt:message key="label.apepaterno"/><br/>
			<input type="text" id="deApellidoPaternoID" class="text medium"/>			
		</div><br/>
		
		<div>
			<fmt:message key="label.apematerno"/><br/>
			<input type="text" id="deApellidoMaternoID" class="text medium"/>			
		</div><br/>
		
		<div>
			<fmt:message key="common.docidentidad"/><br/>
			<input type="text" id="deDocIdentidadID" class="text medium"/>			
		</div><br/>
		
		<div>
			<fmt:message key="label.departamento"/><br/>
	        <select class="text mediumlarge" id="coDepartamentoID" onchange="setCmbProvincia()">
	        	<c:forEach var="bean" items="${listadepartamento}">
	        		<option value="${bean.coDepartamento}">
	        			${bean.deDepartamento}
	        		</option>
	        	</c:forEach>
	       	</select>
		</div><br/>
		
		<div>
			<fmt:message key="label.provincia"/><br/>
	        <select class="text mediumlarge" id="coProvinciaID" onchange="setCmbDistrito()" >
	        	<c:forEach var="bean" items="${listaprovincia}">
	        		<option value="${bean.coProvincia}">
	        			${bean.deProvincia}
	        		</option>
	        	</c:forEach>
	       	</select>
		</div><br/>
		
		<div>
			<fmt:message key="label.distrito"/><br/>
	        <select class="text mediumlarge" id="coDistritoID" >
	        	<c:forEach var="bean" items="${listadistrito}">
	        		<option value="${bean.coDistrito}">
	        			${bean.deDistrito}
	        		</option>
	        	</c:forEach>
	       	</select>
		</div><br/>
		
		<div>
			<fmt:message key="label.estadocivil"/><br/>
	        <select class="text mediumlarge" id="coEstadoCivilID" >
	        	<c:forEach var="bean" items="${listestadocivil}">
	        		<option value="${bean.id}">
	        			${bean.deEstadoCivil}
	        		</option>
	        	</c:forEach>
	       	</select>
		</div><br/>
				
		<div>
			<input type="button" onclick="busquedaClientes()" value="<fmt:message key="button.search"/>"/>
		</div>					
		</fieldset><br/>
		
		<div id="displayTable">
			<%@ include file="clientes.jsp"%>			
		</div>	
		
</form:form>